<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="span12">
  <h2>Create a free Spitter account</h2>
	<%-- Error Messages --%>
	<c:if test="${not empty errors}">
	    <div class="alert-message error" id="errorMessages">
	        <c:forEach var="error" items="${errors}">
	            <img src="<c:url value="/resources/images/iconWarning.gif"/>"
	                alt="<fmt:message key="icon.warning"/>" class="icon" />
	            <c:out value="${error}"/><br />
	        </c:forEach>
	    </div>
	    <c:remove var="errors"/>
	</c:if>

	<%-- Success Messages --%>
	<c:if test="${not empty successMessages}">
	    <div class="alert-message success" id="successMessages">
	        <c:forEach var="msg" items="${successMessages}">
	            <img src="<c:url value="/resources/images/iconInformation.gif"/>"
	                alt="<fmt:message key="icon.information"/>" class="icon" />
	            <c:out value="${msg}"/><br />
	        </c:forEach>
	    </div>
	    <c:remove var="successMessages" scope="session"/>
	</c:if>
	<sf:form method="POST" 
	           action="createProcess" 
	           modelAttribute="spitter">  <!--<co id="co_form_form"/>-->
		<fieldset>
		
		<div class="clearfix">
            <label for="xlInput">Username:</label>
            <div class="input">
              <sf:input path="username" size="15" class="xlarge" type="text"/>
            </div>
        </div>
        
        <div class="clearfix">
            <label for="xlInput">Full name:</label>
            <div class="input">
              <sf:input path="fullName" size="15" class="xlarge" type="text"/>
            </div>
        </div>
        
        <div class="clearfix">
            <label for="xlInput">Age:</label>
            <div class="input">
              <sf:input path="age" size="15" class="xlarge" type="text"/>
            </div>
        </div>
        
        <div class="clearfix">
            <label for="xlInput">Email:</label>
            <div class="input">
              <sf:input path="email" size="15" class="xlarge" type="text"/>
            </div>
        </div>
        
        <div class="clearfix">
            <label for="xlInput">Update By Email:</label>
            <div class="input">
              <sf:input path="updateByEmail" size="15" class="xlarge" type="checkbox"/>
            </div>
        </div>
		
		<input name="commit" type="submit" value="OK" /> 
	</fieldset>	                   
	</sf:form>
</div>
